function create_updated_collection(collection_a, object_b) {
  for(let i of object_b['value']){
    for(let j of collection_a){
      if(i===j.key){
        j.count--;
      }
    }
  }
  return collection_a;
}

module.exports = create_updated_collection;
